Regular Expression(REX)

Basic concepts and properties

A language is regular if it is accepted by some FA(Finite Automata)

Equivalence of REX and NFA

Pumping Theorem

Let L be a regular language. There exists an integer p1, such that wL with |w|p can be divided into 3 pieces w=xyz, satisfying the followings:

  1. for each i0, xyizL
  2. |y|>0
  3. |xy|p

e.g. for L=aba, p=3.

The relationship between pumping theorem and regular

Example: Prove 0n1n is not regular.

Assume that 0n1n is regular, let p be the pumping length. Let w=0p1pL, w can be written as w=xyz.
(1) xyizL for any i0
(2) |y|>0
(3) |xy|p
(2)(3) -> y=0k(k>0) -> xy0z=0pk1pL